<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Title</title>
    <%@include file="/WEB-INF/views/commons/commons.jsp" %>

    <script src="/static/js/system/accident.js"></script>
</head>
<body>
<table id="accident_datagrid"></table>
<table id="client_datagrid"></table>

<!--工具栏-->
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" data-cmd="changeStatus">验证</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" id="edit" data-cmd="edit">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>

    <input class="easyui-textbox" type="text" name="keyword" id="keyword" prompt="报案人/手机"/>
    发生时间:<input class="easyui-datebox" type="text" name="beginDate" id="beginDate"/>
    ~<input class="easyui-datebox" type="text" name="endDate" id="endDate"/>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query">查询</a>
</div>

<!--事故添加与查看的对话框-->
<div id="accident_dialog">
    <form id="accident_form" method="post">
        <input type="hidden" id="accidentId" name="id">
        <table align="center" style="margin-top: -50px" >
            <tr>
                <td>报案人姓名:</td>
                <td><input id="client" name="client.id" class="easyui-combogrid" required="true"/>
                </td>
                <br>
            </tr>
            <tr>
                <td>发生时间:</td>
                <td><input class=" easyui-datebox" name="oTime" type="text">
                </td>
                <br>
            </tr>
            <tr>
                <td>发生地点:</td>
                <td><input class=" easyui-textbox" name="oLocation" type="text">
                </td>
                <br>
            </tr>
            <tr>
                <td>事故责任:</td>
                <td><input class="easyui-combobox" name="duty" type="text"
                           data-options="panelHeight:'auto' ,
                           valueField: 'name',textField: 'name',
                           url:'/accident/selectForDuty'">
                </td>
                <br>
            </tr>
            <tr>
                <td>事故备注:</td>
                <td><input class="easyui-textbox" name="remark" type="text'">
                </td>
                <br>
            </tr>
        </table>
    </form>
</div>

<!--事故添加底部按钮-->
<div id="bb">
    <a id="btn_save" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true"
       data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
</div>

</body>
</html>
